package com.siberiadante.multiscrolldemo.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.core.widget.NestedScrollView;

/**
 * @Created SiberiaDante
 * @Describe：
 * @CreateTime: 2017/12/17
 * @UpDateTime:
 * @Email: 2654828081@qq.com
 * @GitHub: https://github.com/SiberiaDante
 */

public class JudgeNestedScrollView extends NestedScrollView {

    public JudgeNestedScrollView(Context context) {
        super(context, null);
        initListener();
    }

    public JudgeNestedScrollView(Context context, AttributeSet attrs) {
        super(context, attrs, 0);
        initListener();
    }

    public JudgeNestedScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initListener();
    }

    private void initListener() {
    }

    private int mToolBarHeight;

    public void setToolBarHeight(int toolBarHeight) {
        mToolBarHeight = toolBarHeight;
    }

    public int getToolBarHeight() {
        return mToolBarHeight;
    }
}
